<?php

error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);

require_once 'include/inc.config.php';


require_once WACT_ROOT.'common.inc.php';
require_once WACT_ROOT.'controller/pathinfo.inc.php';
require_once APP_ROOT . 'model/common/user.php';
require_once APP_ROOT . 'model/common/session.php';

require_once APP_CTRL_ROOT . 'adm/admin_controller.php';

class MyAdminRootController extends RootAdminController {

	function MyAdminRootController() {
        parent::RootAdminController();
        $this->addChild('inbox',   new Handle(APP_CTRL_ROOT . 'adm/adm.inbox.php|AdminInboxPage'));
		$this->addChild('content',   new Handle(APP_CTRL_ROOT . 'adm/adm.content.php|AdminContentPage'));
		$this->addChild('users',   new Handle(APP_CTRL_ROOT . 'adm/adm.users.php|AdminUsersPage'));
		$this->addChild('site_layout',   new Handle(APP_CTRL_ROOT . 'adm/adm.site_layout.php|AdminSiteLayoutPage'));
		$this->addChild('teamstats',   new Handle(APP_CTRL_ROOT . 'adm/adm.teamstat.php|AdminTeamStatsPage'));
		$this->addChild('calendar',   new Handle(APP_CTRL_ROOT . 'adm/adm.calendar.php|AdminCalendarPage'));
		$this->addChild('forum',   new Handle(APP_CTRL_ROOT . 'adm/adm.forum.php|AdminForumPage'));

        $this->setDefaultChild('inbox');

	}

}

$Front =& new MyAdminRootController();
$Front->start();

?>